package com.azxc.rapid.plus.system.feign;

import com.azxc.rapid.core.tool.api.R;
import com.azxc.rapid.system.entity.*;
import com.azxc.rapid.system.vo.RegionTreeVO;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Feign失败配置
 */
@Component
public class IRegionPlusClientFallback implements IRegionPlusClient {

	@Override
	public R<List<Region>> getCityList(String cityCode) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<List<Region>> getJurisdictionByCity(String cityCode, String jurisdictionLevel) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<Region> getByCode(String code) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<List<Region>> getByCodes(String codes) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<List<Region>> getByParams(Region region) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<Region> getByDept(Long deptId) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<Region> getByGenerateDoc(String code) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<List<Region>> getChildRegionsByCode(String code) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<Region> getRegionByCode(String code) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<List<Region>> getList() {
		return R.fail("获取数据失败");
	}

	@Override
	public R<String> selectRegionCode(String city) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<RegionTreeVO> getTreeByCode(String parentCode) {
		return R.fail("获取数据失败");
	}

	@Override
	public R<Region> getRegionByName(String regionName) {
		return R.fail("获取数据失败");
	}
}
